import request from '@/utils/request'

export function selectAll(data) {
  return request({
    url: '/registration/all',
    method: 'post',
    data: data
  })
}

export function selectAllDoctor(data) {
  return request({
    url: '/registration/all/doctor',
    method: 'post',
    data: data
  })
}

export function add(data) {
  return request({
    url: '/registration/add',
    method: 'post',
    data: data
  })
}

export function addNurse(data) {
  return request({
    url: '/registration/add/nurse',
    method: 'post',
    data: data
  })
}

export function update(data) {
  return request({
    url: '/registration/update',
    method: 'post',
    data: data
  })
}

export function del(data) {
  return request({
    url: '/registration/delete',
    method: 'post',
    data: data
  })
}
